package com.game.business.domain;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.game.common.core.domain.BaseEntity;
import com.game.common.annotation.Excel;
import com.game.common.core.domain.entity.SysUser;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 群聊成员对象 group_member
 *
 * @author ruoyi
 * @date 2025-10-15
 */
@Data
@TableName(value = "group_member")
@EqualsAndHashCode(callSuper = true)
public class GroupMember extends BaseEntity{
private static final long serialVersionUID = 1L;

/** $column.columnComment */
@TableId(type = IdType.ASSIGN_ID)
private String id;
/** "环信群组ID" */
@Excel(name = "环信群组ID")
private String groupId;
/** "用户ID" */
@Excel(name = "用户ID")
private String userId;
/** "角色(1-普通成员,2-管理员,3-群主)" */
@Excel(name = "角色(1-普通成员,2-管理员,3-群主)")
private String role;
/** "加入时间" */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date joinTime;
/** "成员状态(0-已退出,1-正常)" */
@Excel(name = "成员状态(0-已退出,1-正常)")
private String status;


 /** "用户信息" */
@TableField(exist = false)
 private SysUser user;;

 @TableField(exist = false)
 private List<String> userIds;

 @TableField(exist = false)
 private String nickName;



 }
